<?php
namespace app\common\model;

use think\Model;
use think\model\concern\SoftDelete;

class ChangeLog extends Model
{
    use SoftDelete;
    protected $autoWriteTimestamp = true;
    // 设置json类型字段
    //protected $json = ['userinfo'];
    public function user()
    {
        return $this->hasOne(User::class,"id","uid");
    }


    public function content()
    {
        return $this->hasOne(Content::class,"id","contentid");
    }
}
